package com.zf.yichat.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "user_join_ultragroup")
public class UserJoinUltragroup implements Serializable {


    // 待审核
    public static final String STATUS_AUDIT = "0";
    // 审核通过
    public static final String STATUS_APPROVED = "1";
    // 拒绝后仍可申请
    public static final String STATUS_REJECTION = "2";
    // 拒绝后不可申请
    public static final String STATUS_REJECTED = "3";

    // 群组成员级别-群主
    public static final  String LEVEL_OWNER = "0";
    // 群组成员级别-管理员
    public static final  String LEVEL_ADMIN = "1";
    // 群组成员级别-普通成员
    public static final  String LEVEL_MEMBER = "2";



    @Id
    private Integer id;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "ultragroup_id")
    private String ultragroupId;

    @Column(name = "level")
    private String level;

    @Column(name = "create_time")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public UserJoinUltragroup(Integer id, Long userId, String ultragroupId,String level, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.ultragroupId = ultragroupId;
        this.level = level;
        this.createTime = createTime;
    }

    public UserJoinUltragroup() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return user_id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * @return ultragroup_id
     */
    public String getUltragroupId() {
        return ultragroupId;
    }

    /**
     * @param ultragroupId
     */
    public void setUltragroupId(String ultragroupId) {
        this.ultragroupId = ultragroupId == null ? null : ultragroupId.trim();
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}